package com.xge.business.dao

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import com.xge.business.bean.MemoBean

@Dao
interface MeMoDao {

    @Insert
    suspend fun insert(memoBean: MemoBean)

    @Query("SELECT * FROM memo")
    suspend fun getAll(): List<MemoBean>

    // 添加更多的表
    @Query("DELETE FROM memo")
    suspend fun clearTable()

}